<?php echo $this->Session->flash(); ?>
<?php $bloqueo = $this->Session->read('bloqueo_avaluo'); ?>
<?php echo $form->create('Annex'); ?>
<table border="0">

    <tbody>
        <tr>
            <td><?php echo $form->input("Annex.nombre", array('label' => 'Nombre de la construcción')); ?></td>
            <td><?php echo $form->input('Annex.area', array('label' => "Area")); ?></td>

        </tr>
        <tr>
            <td><?php echo $form->input('Annex.unidad_de_medida', array('label' => "Unidad de medida", 'options' => array('Sin registro' => 'Sin registro', 'm' => 'm', 'm2' => 'm2', 'm3' => 'm3', 'Unidad' => 'Unidad'))); ?></td>

            <td><?php echo $form->hidden("Annex.property_id"); ?><?php echo $form->input("Annex.descripcion", array('label' => "Descripcion")); ?></td>
        </tr>
    </tbody>
</table>





<div id="load" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<?php
if ($bloqueo == "No")
    echo $ajax->submit('Guardar', array('url' => array('controller' => 'Annexes', 'action' => 'edit', $this->data['Annex']['id']), 'update' => 'annexes', 'complete' => '', 'indicator' => 'load'));
echo $form->end();
echo $ajax->link("Regresar", array('controller' => 'Annexes', "action" => "index", $this->data['Annex']['property_id']), array('update' => 'annexes', 'complete' => '', 'indicator' => 'load'));
?>








